#define _CRT_SECURE_NO_WARNINGS 1

#include"stack.h"
#include<vector>
using namespace std;
int main()
{
	stack<int,vector<int>> s;
	s.push(1);
	s.push(2);
	s.push(3);
	s.push(4);
	while (!s.empty())
	{
		cout << s.top() << " ";
		s.pop();
	}
	cout << endl;
	return 0;
}